function setResult(result) {
    document.getElementById('result').innerHTML = result;
}